#include <stdio.h>
#include <stdlib.h>


int main(void)
{
	int N,men,woman,child,count=0;
	
	scanf("%d",&N);
	
	for(men=0;men<=(N/3);men++){
		for(woman=0;woman<=(N/2);woman++){
			for(child=0;child<=2*N;){
				if((3*men+2*woman+child/2)==N&&(men+woman+child==N)){
					printf("men=%d women=%d child=%d\n",men,woman,child);
					count++;
				}
				child += 2;
			}
			
			
		}
	
	}
		if(count==0)
			printf("No solution!");
	
	
		return 0;




}